<?php
//include("../include/function.php");
dbconnect();
session_start();
?>
<script type="text/javascript">
$(document).ready(function(){
	$.ajax({
	url:"index.php?management=client&&task=add",
	 success:function(result)
	  {
	  $('#formlist').html(result);
	  },
	  error:function(result)
	  {
		$('#formlist').html(result);

	  }
	});
});
</script>
<?php
if($_SESSION["loggedin"]==true && $_SESSION["role"]==admin)
{
if(isset($_SESSION[msg]))
{
echo $_SESSION[msg];
unset($_SESSION[msg]);
}
?>

<form action="index.php?management=client&&task=add" style="display:none;" method="post" id="clientform">
<input type="text" value="<?php echo $_POST['clientname']; ?>" name="clientname" id="clientname"/> 
<input type="submit" value="save" name="clientmanage" id="saveclient"/>
</form>

<div id="formlist">

</div>

<?php
/* $select = "SELECT * from client";
$selectquery = mysql_query($select); */
?>
<?php
}
else
{
header("Location: login.php");
}
exit;
?>